//
//  UIView+IBExtension.swift
//  Weibo
//
//  Created by 黄健桦 on 2016/9/23.
//  Copyright © 2016年 黄健桦. All rights reserved.
//
//
import UIKit

extension UIView {
    
    @IBInspectable var cornerRadius: CGFloat{
        set {
            layer.cornerRadius = newValue
            layer.masksToBounds = newValue > 0
        }
        get {
            return layer.cornerRadius
        }
    }
    
}
